package com.ruoyi.common.core.domain.e_enterprise;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工信息对象 e_user
 * 
 * @author JYW
 * @date 2024-01-30
 */
public class EUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 工号 */
    @Excel(name = "工号")
    private String workNumber;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 性别（0：女，1：男） */
    @Excel(name = "性别", readConverterExp = "0=：女，1：男")
    private Long sex;

    /** 头像 */
    @Excel(name = "头像")
    private String photo;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String postBox;

    /** 身份证 */
    @Excel(name = "身份证")
    private String idCard;

    /** 银行卡号 */
    @Excel(name = "银行卡号")
    private String bankCard;

    /** 爱好 */
    @Excel(name = "爱好")
    private String hobby;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setWorkNumber(String workNumber) 
    {
        this.workNumber = workNumber;
    }

    public String getWorkNumber() 
    {
        return workNumber;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPostBox(String postBox) 
    {
        this.postBox = postBox;
    }

    public String getPostBox() 
    {
        return postBox;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setBankCard(String bankCard) 
    {
        this.bankCard = bankCard;
    }

    public String getBankCard() 
    {
        return bankCard;
    }
    public void setHobby(String hobby) 
    {
        this.hobby = hobby;
    }

    public String getHobby() 
    {
        return hobby;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("workNumber", getWorkNumber())
            .append("password", getPassword())
            .append("age", getAge())
            .append("sex", getSex())
            .append("photo", getPhoto())
            .append("phone", getPhone())
            .append("postBox", getPostBox())
            .append("idCard", getIdCard())
            .append("bankCard", getBankCard())
            .append("hobby", getHobby())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
